package com.example.agriculture.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * (ShoppingCart)实体类
 *
 * @author makejava
 * @since 2022-09-12 23:22:18
 */
public class ShoppingCart implements Serializable {
    private static final long serialVersionUID = -29961033896429154L;

    private Integer shoppingId;

    private UserInfor user;

    private Product product;

    private Producer producer;

    private Date shoppingCreatTime;

    private int shoppingCount;

    private float shoppingTotalPrice;

    public float getShoppingTotalPrice() {
        return shoppingTotalPrice;
    }

    public void setShoppingTotalPrice(float shoppingTotalPrice) {
        this.shoppingTotalPrice = shoppingTotalPrice;
    }


    public int getShoppingCount() {
        return shoppingCount;
    }

    public void setShoppingCount(int shoppingCount) {
        this.shoppingCount = shoppingCount;
    }

    public Integer getShoppingId() {
        return shoppingId;
    }

    public void setShoppingId(Integer shoppingId) {
        this.shoppingId = shoppingId;
    }

    public Date getShoppingCreatTime() {
        return shoppingCreatTime;
    }

    public void setShoppingCreatTime(Date shoppingCreatTime) {
        this.shoppingCreatTime = shoppingCreatTime;
    }

    public UserInfor getUser() {
        return user;
    }

    public void setUser(UserInfor user) {
        this.user = user;
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public Producer getProducer() {
        return producer;
    }

    public void setProducer(Producer producer) {
        this.producer = producer;
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "shoppingId=" + shoppingId +
                ", user=" + user +
                ", product=" + product +
                ", producer=" + producer +
                ", shoppingCreatTime=" + shoppingCreatTime +
                ", shoppingCount=" + shoppingCount +
                ", shoppingTotalPrice=" + shoppingTotalPrice +
                '}';
    }
}